package com.kgame5.xtank3d.model.tank.comp.flag.tagpane {

/**
 * @author kangkai
 * 玩家hp
 */
import flash.display.*;

public class HPBar {
	private var mc:MovieClip;
	
	public function HPBar(p_mc:MovieClip){
		mc=p_mc;
		
	}
	
	//hp是当前的，HP是最大的值
	public function setHP(hp:int,HP:int):void{
		var p:Number=hp/HP;
		mc.mc_bar.scaleX=p;
	}
}//end of class
}
